package 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Rectangle;
	import starling.core.Starling;
	
	/**
	 * The Starling startup class
	 * @author Epixcs
	 */
	
	[SWF(width="1024", height="600", frameRate="60", backgroundColor="#ffffff")]
	public class Startup extends Sprite 
	{
		private var m_starling:Starling = null; // The starling reference
		
		/*************************************************************************/
		
		/**
		 * Main game class constructor
		 */
		public function Startup():void 
		{
			// create the Starling reference
			this.m_starling = new Starling( Game, this.stage, new Rectangle( 0.0, 0.0, 1024.0, 600.0 ) ); // TODO: replace magic numbers for viewport
			
			// enable anti-aliasing
			this.m_starling.antiAliasing = 1;
			
			// start the engine
			this.m_starling.start();
		}
		
		/*************************************************************************/
		
	}
	
}